package com.xbts.screen.monitor.controller;

import com.xbts.common.core.web.controller.BaseController;
import com.xbts.common.core.web.page.TableDataInfo;
import com.xbts.common.security.annotation.RequiresPermissions;
import com.xbts.screen.monitor.service.IMonitorService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 大屏-监控
 */
@Api(tags = "大屏-监控")
@RequestMapping("/monitor")
@RestController
public class ScreenMonitorController extends BaseController {

    @Autowired
    private IMonitorService monitorService;

    /**
     * 大屏-监控-列表
     */
    @ApiOperation("大屏-监控-列表")
    @RequiresPermissions("screen:monitor:list")
    @GetMapping("/list")
    public TableDataInfo list(Long pageNum, Long pageSize){
        return monitorService.list(pageNum, pageSize);
    }

}
